//
//  Utility.h
//  DABook
//
//  Created by DreamArts on 16/4/25.
//  Copyright © 2016年 lidongyang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface Utility : NSObject

@end

@interface UIImage(Utility)
+ (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize;
+ (UIImage *)reSizeImage:(UIImage *)image toSize:(CGSize)reSize;
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;
@end

@interface UIColor(Utility)

+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;
+ (UIColor *)themeWhiteColor;
+ (UIColor *)themeBlackColor;
+ (UIColor *)supportGreenColor;
+ (UIColor *)supportRedColor;

@end
@interface UIButton (Utility)
//扩大按钮响应范围
- (void)setEnlargeEdgeWithTop:(CGFloat) top right:(CGFloat) right bottom:(CGFloat) bottom left:(CGFloat) left;

@end

@interface UIView (Utility)

- (UIImage *)makeImageWithView:(UIView *)view;

@end